package com.zzdn.mqtool.utils;

import java.util.Map;

public class ResultMap {

    public static void setSuccess(Map map){
        map.put("status","0000");
        map.put("data","your operation are successfully !!! ");
    }

    public static void setfail(Map map){
        map.put("status","0001");
        map.put("data","your operation are unsuccessfully !!! ");
    }

    public static void setfail(Map map, String msg){
        map.put("status","0001");
        map.put("data",msg);
    }

    public static Map<String, Object> setStatusAndData(Map map , String status, Object obj){
        map.put("status",status);
        map.put("data", obj);
        return map;
    }

}
